cmake_minimum_required(VERSION 3.12)
project(sim)
set(CMAKE_BUILD_TYPE debug)
set(SIMUCPP_DIR D:/cppcode/simucpp)
set(ZHNMAT_DIR D:/cppcode/zhnmat)
set(PYTHON_DIR D:/python)
set(EGE_DIR D:/cppcode/ege)
set(ALGM_DIR D:/cppcode/zhnoptim)

add_executable(${CMAKE_PROJECT_NAME}
    # ${PROJECT_SOURCE_DIR}/cppcode/singleip.cpp
    ${PROJECT_SOURCE_DIR}/cppcode/seriespid.cpp
    # ${PROJECT_SOURCE_DIR}/cppcode/pidtest.cpp
    # ${PROJECT_SOURCE_DIR}/cppcode/doubleip.cpp
)
target_link_libraries(${CMAKE_PROJECT_NAME}
   ${SIMUCPP_DIR}/build/libsimucpp.a
    ${ZHNMAT_DIR}/build/libzhnmat.a
    ${PYTHON_DIR}/libs/_tkinter.lib
    ${PYTHON_DIR}/libs/python3.lib
    ${PYTHON_DIR}/libs/python39.lib
    ${EGE_DIR}/libgraphics64.a
    libgdi32.a libimm32.a libmsimg32.a libole32.a
    liboleaut32.a libwinmm.a libuuid.a libgdiplus.a
    ${ALGM_DIR}/build/libalgorithm.a
)
target_include_directories(${CMAKE_PROJECT_NAME} PUBLIC
    ${SIMUCPP_DIR}/inc
    ${EGE_DIR}/include
    ${ALGM_DIR}
)
